package com.javaeedev.dao;

import com.javaeedev.domain.User;

/**
 * Operations of user.
 * 
 * @author xuefeng
 */
public interface UserDao {

    User queryForSignOn(String username);

    User queryUser(String username);

    void createUser(User user);

    void updateUser(User user);

    boolean updateEmailValidation(String username, int ticket);

    String createPasswordTicket(User user);

    boolean updatePassword(String username, String oldPassword, String newPassword);

    boolean queryResetPassword(User user, String ticket);

    boolean updateResetPassword(User user, String ticket, String password);

    void updateLock(User user, long lockTime);

    void updateUnlock(User user);

}